]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Use ease-out-sine when entering overview and app grid
authorHari Rana <theevilskeleton@riseup.net>
Sat, 13 Dec 2025 03:36:57 +0000 (22:36 -0500)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 14 Jan 2026 18:11:08 +0000 (19:11 +0100)
Using animations with slower initial curves on display-wide
layout shifts may provide a smoother experience to users of
low(er) refresh rate and/or large(r) displays, as they avoid
skipping large chunks of frames, making it less choppy at
the beginning of the animation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4000>
(cherry picked from commit c518e3ddcc7bee86331a3c2f73896793d00f4f91)

js/ui/overviewControls.js

index a7aefb7f922cdb78f47f8fd9499e2a18c86d9ce3..ebe66fe254d72d1a8ab135dcd737ba4161fc1933 100644 (file)
@@ -653,7 +653,7 @@ class ControlsManager extends St.Widget {
         this._stateAdjustment.remove_transition('value');
         this._stateAdjustment.ease(value, {
             duration: SIDE_CONTROLS_ANIMATION_TIME,
-            mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+            mode: Clutter.AnimationMode.EASE_OUT_SINE,
         });
     }
 
@@ -724,7 +724,7 @@ class ControlsManager extends St.Widget {
         this._stateAdjustment.value = ControlsState.HIDDEN;
         this._stateAdjustment.ease(state, {
             duration: Overview.ANIMATION_TIME,
-            mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+            mode: Clutter.AnimationMode.EASE_OUT_SINE,
             onStopped: () => {
                 if (callback)
                     callback();